/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package core;

import java.util.AbstractList;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author MOI
 */
public class CoreController implements Recepteur{


    private boolean receive = false;
    private boolean send = false;
    private boolean edit = false;
    private List<CoreThread> processus = null;
    private List<NetPaquet> InPaquet = null;
    private List<NetPaquet> OutPaquet = null;

    public CoreController(List<CoreThread> Lprocess,List<NetPaquet> In,List<NetPaquet> Out) {
        processus = Lprocess;
        InPaquet = In;
        OutPaquet = Out;
    }
    public CoreController()
    {
         processus = new ArrayList<CoreThread>();
        InPaquet = new ArrayList<NetPaquet>();
        OutPaquet = new ArrayList<NetPaquet>();
    }


    
    public boolean executerAction(String action)
    {
        System.out.println("Executer " + action);
        return true;
    }
    

    public NetPaquet receive() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void addProcessus(CoreThread t)
    {
        this.processus.add(t);
    }
    
 
}
